/*
 * 组件注释
 * @Author: machinist_wq
 * @Date: 2022-09-04 13:26:10
 * @LastEditors: machinist_wq
 * @LastEditTime: 2022-09-04 14:00:37
 * @Description:
 * 人生无常！大肠包小肠......
 */

const dataSource = [
  {
    title: "发布时间",
    key: "assetPublishTime",
  },
  {
    title: "开始时间",
    key: "startTime",
  },
  {
    title: "数量",
    key: "count",
  },
];
// 基本用法
export const basicCode: string = `
import OrderFieldList from "@/component/orderFieldList";

const App = () => {
  return (
    <OrderFieldList
      onChange={data => console.log(data)}
      dataSource={${dataSource}}
    />
  );
};

export default App;
`;
// 多选
export const multipleCode: string = `
import OrderFieldList from "@/component/orderFieldList";

const App = () => {
  console.log(111);
  return (
    <OrderFieldList
      onChange={data => console.log(data)}
      dataSource={${dataSource}}
      multiple
    />
  );
};

export default App;
`;
